Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter ordinals #1386

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

reegnz
Copy link
Contributor

@reegnz reegnz commented Oct 25, 2024

Implements #1384

What this PR does / why we need it

See #1384 for explanation.

Which issue(s) this PR fixes

Fixes #1384

Does this PR introduced a user-facing change?

Filter and ClusterFilter ordering can now be influenced with the `.spec.ordinal` field.

Additional documentation, usage docs, etc


@reegnz
Copy link
Contributor Author

reegnz commented Oct 25, 2024

I'm not sure about the usage of positive/negative ordinals, so maybe the runs after namespaced filters could be a separate field in the ClusterFilter CRD instead.

@reegnz reegnz force-pushed the feat/filter_ordinals branch from 94a4ce0 to 625b63e Compare October 25, 2024 10:55
@reegnz
Copy link
Contributor Author

reegnz commented Oct 25, 2024

Actually I think I need to separate the ordinal-based sorting from the before/after namespace filters part.

Implements fluent#1384

Signed-off-by: Zoltán Reegn <[email protected]>
@reegnz reegnz force-pushed the feat/filter_ordinals branch from 625b63e to fc4ea21 Compare October 25, 2024 11:15
@benjaminhuo
Copy link
Member

Signed-off-by: Zoltán Reegn <[email protected]>
@reegnz reegnz force-pushed the feat/filter_ordinals branch from 41dc7ef to 86652be Compare November 28, 2024 10:32
@reegnz
Copy link
Contributor Author

reegnz commented Nov 28, 2024

@benjaminhuo
Seems like I left in some stuff that was meant for #1387 instead (which is not in scope for this PR).
Adjusted tests now.

@benjaminhuo
Copy link
Member

@benjaminhuo benjaminhuo merged commit cc23366 into fluent:master Nov 29, 2024
9 of 10 checks passed
@reegnz reegnz deleted the feat/filter_ordinals branch December 2, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: proper control over filter order with ordinals
2 participants